<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

\Laravel\Passport\Passport::routes();

Route::get('login', 'BaseController@login');//授权登录

Route::middleware(['api_passport'])->group(function (){
    Route::get('aa', 'IndexController@test');//测试
});
